import request from "@/utils/request.js";

export const queryLikeMajorByMajorNameService = (majorNamePartial) => {
  return request.get("/major/findbymajornamepartial", {
    params: { majorNamePartial },
  });
};
export const queryMajorByCollegeNameService = (
  collegeName,
  majorNamePartial,
) => {
  return request.get("/major/findbycollegename", {
    params: { collegeName, majorNamePartial },
  });
};
export const listMajorsByCollege = (collegeId) => {
  return request.get("/major/findbycollegeid", { params: { collegeId } });
};
